home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / sr / info-sr.1998 / 000006_owner-info-sr _Tue May 26 02:49:41 1998.msg < prev    next >
Internet Message Format  |  1999-01-04  |  3KB

  1. Return-Path: <owner-info-sr@cheltenham.cs.arizona.edu>
  2. Received: from optima.cs.arizona.edu (optima.CS.Arizona.EDU [192.12.69.5])
  3.     by cheltenham.cs.arizona.edu (8.8.7/8.8.7) with ESMTP id CAA24589
  4.     for <info-sr@cheltenham.cs.arizona.edu>; Tue, 26 May 1998 02:49:41 -0700 (MST)
  5. Received: from arturo.lsi.us.es (arturo.lsi.us.es [150.214.141.54])
  6.     by optima.cs.arizona.edu (8.9.0.Beta5/8.9.0.Beta5) with ESMTP id CAA29842
  7.     for <info-sr@cs.arizona.edu>; Tue, 26 May 1998 02:48:52 -0700 (MST)
  8. Received: from arturo (localhost [127.0.0.1]) by arturo.lsi.us.es (8.7.6/8.7.3) with SMTP id LAA25554 for <info-sr@cs.arizona.edu>; Tue, 26 May 1998 11:46:14 +0200 (MET DST)
  9. Sender: jperez@lsi.us.es
  10. Message-ID: <356A8F65.191B@lsi.us.es>
  11. Date: Tue, 26 May 1998 11:46:13 +0200
  12. From: "Jose A. Perez Castellanos" <jperez@lsi.us.es>
  13. Organization: Departamento de Lenguajes y Sistemas Informaticos
  14. X-Mailer: Mozilla 3.0 (X11; I; SunOS 5.4 sun4d)
  15. MIME-Version: 1.0
  16. To: info-sr@cs.arizona.edu
  17. Subject: Help!
  18. Content-Type: text/plain; charset=us-ascii
  19. Content-Transfer-Encoding: 7bit
  20.  
  21. Hello netters,
  22.  
  23.         I've recently got in trouble with this program:
  24.  
  25. -----------------------------------------------------------
  26. resource A
  27.  
  28.   op message1() {send}
  29.   op message2() {send} 
  30.  
  31. body A()
  32.  
  33. end A
  34.  
  35. resource R1
  36.  
  37.   import A
  38.  
  39.   op Body (cap_m : cap A) {send}
  40.  
  41. body R1( )
  42.  
  43.   proc Body (cap_m)
  44.     in 
  45.       cap_m.message1() -> printf("Message1\n")
  46.     [] 
  47.       cap_m.message2() -> printf("Message2\n")
  48.     ni
  49.   end
  50.  
  51. end R1
  52.  
  53. [Other stuff removed]
  54.  
  55. -----------------------------------------------------------
  56.  
  57.         My SR compiler stops compilation showing the following error
  58. message:
  59.  
  60. "mensaje.sr", line 34: fatal: illegal context for non-local capability
  61. "mensaje.sr", line 36: fatal: illegal context for non-local capability
  62.  
  63.         Could someone, please, tell me what I'm doing wrong?  Thanks in
  64. advance.
  65. -- 
  66.                             ******************************************         
  67.                             * Jose Antonio Perez Castellanos         *
  68.                             * Dep. Lenguajes y Sistemas Informaticos *
  69.                             * Universidad de Sevilla - SPAIN         *
  70.                             * jperez@lsi.us.es                       *
  71.                             * -------------------------------------- *
  72.                             * The Gods Made Heavy Metal...           *
  73.                             ******************************************